package com.squirrel.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 *  User 用户实体类
 * </p>
 *
 * @author 关远键
 * @since 2021/11/10 14:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    @ApiModelProperty("用户ID")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户名")
    @TableField("user_nickname")
    private String nickname;

    @ApiModelProperty("邮箱")
    @TableField("user_mail")
    private String mail;

    @ApiModelProperty("密码")
    @TableField("user_password")
    private String password;

    @ApiModelProperty("头像")
    @TableField("user_avatar")
    private String avatar;

    @ApiModelProperty("简介")
    @TableField("user_intro")
    private String intro;


}
